﻿using QYmall.Core.Common.Emum;
using QYmall.Core.Model.Models;
using QYmall.Core.Model.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace QYmall.Core.IServices
{
    /// <summary>
    /// 商户菜单接口
    /// </summary>
    public interface IMerchantMenuService : IBaseService
    {
        /// <summary>
        /// 返回所有菜单目录树
        /// </summary>
        Task<IEnumerable<MerchantMenuDto>> QueryListAsync(int parentId, WriteRoRead writeAndRead = WriteRoRead.Read);

        /// <summary>
        /// 返回前台所有菜单目录树
        /// </summary>
        Task<IEnumerable<MerchantMenuClientDto>> QueryListAsync(WriteRoRead writeAndRead = WriteRoRead.Read);

        /// <summary>
        /// 根据条件删除数据(迭代删除)
        /// </summary>
        Task<bool> DeleteAsync(Expression<Func<MerchantMenu, bool>> funcWhere, WriteRoRead writeAndRead = WriteRoRead.Write);
    }
}
